<ui:composition template = "template.xhtml"
                xmlns ="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core">
    <ui:define name ="conteudo">

        <h:form>

            <h:panelGrid columns="2">
                
                <h:outputLabel value="Nome Campo: " />
                <h:inputText value="#{campos.campo.titulo}" />
                
                <h:outputLabel value="Descrição " />
                <h:inputText value="#{campos.campo.descricao}" />
                
                <h:outputLabel value="Dublin Core: " />
                <h:inputText value="#{campos.campo.dublinCore}" />
                
                <h:outputLabel value="Marc: " />
                <h:inputText value="#{campos.campo.marc}" />
                
                <h:outputLabel value="Ajuda: " />
                <h:inputText value="#{campos.campo.ajuda}" />
                
                <h:outputLabel value="Tipo Campo: " />
                <h:inputText value="#{campos.campo.tipoCampo.descricao}" disabled="true" />
                
                <h:outputLabel value="Tamanho: " />
                <h:inputText value="#{campos.campo.tamanho}" />
                
                <h:outputLabel value="Acervo Recursivo: " />
                <h:inputText value="#{campos.campo.chaveAcervo}" disabled="true" />
                
            </h:panelGrid>

            <h:commandLink value="Editar">
                <f:ajax
                    event ="click"
                    execute ="@form"
                    listener ="#{campos.update()}"
                    render ="@all" />
                <f:param name="chave" value="#{campos.campo.chaveCampo}" />
            </h:commandLink>


        </h:form>

    </ui:define>
</ui:composition>